<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="format-detection" content="telephone=no, date=no, address=no, email=no, url=no">
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <title>欢乐菠萝商城</title>
    <meta name="description" content="">
    <script>
    !function(){var a="@charset \"utf-8\";html{color:#000;background:#fff;overflow-y:scroll;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}html *{outline:0;-webkit-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}html,body{font-family:sans-serif}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{margin:0;padding:0}input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}abbr,acronym{border:0;font-variant:normal}del{text-decoration:line-through}address,caption,cite,code,dfn,em,th,var{font-style:normal;font-weight:500}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:500}q:before,q:after{content:''}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}a:hover{text-decoration:underline}ins,a{text-decoration:none}",b=document.createElement("style");if(document.getElementsByTagName("head")[0].appendChild(b),b.styleSheet)b.styleSheet.disabled||(b.styleSheet.cssText=a);else try{b.innerHTML=a}catch(c){b.innerText=a}}();!function(a,b){function c(){var b=f.getBoundingClientRect().width;b/i>540&&(b=540*i);var c=b/10;f.style.fontSize=c+"px",k.rem=a.rem=c}var d,e=a.document,f=e.documentElement,g=e.querySelector('meta[name="viewport"]'),h=e.querySelector('meta[name="flexible"]'),i=0,j=0,k=b.flexible||(b.flexible={});if(g){console.warn("将根据已有的meta标签来设置缩放比例");var l=g.getAttribute("content").match(/initial\-scale=([\d\.]+)/);l&&(j=parseFloat(l[1]),i=parseInt(1/j))}else if(h){var m=h.getAttribute("content");if(m){var n=m.match(/initial\-dpr=([\d\.]+)/),o=m.match(/maximum\-dpr=([\d\.]+)/);n&&(i=parseFloat(n[1]),j=parseFloat((1/i).toFixed(2))),o&&(i=parseFloat(o[1]),j=parseFloat((1/i).toFixed(2)))}}if(!i&&!j){var p=(a.navigator.appVersion.match(/android/gi),a.navigator.appVersion.match(/iphone/gi)),q=a.devicePixelRatio;i=p?q>=3&&(!i||i>=3)?3:q>=2&&(!i||i>=2)?2:1:1,j=1/i}if(f.setAttribute("data-dpr",i),!g)if(g=e.createElement("meta"),g.setAttribute("name","viewport"),g.setAttribute("content","initial-scale="+j+", maximum-scale="+j+", minimum-scale="+j+", user-scalable=no"),f.firstElementChild)f.firstElementChild.appendChild(g);else{var r=e.createElement("div");r.appendChild(g),e.write(r.innerHTML)}a.addEventListener("resize",function(){clearTimeout(d),d=setTimeout(c,300)},!1),a.addEventListener("pageshow",function(a){a.persisted&&(clearTimeout(d),d=setTimeout(c,300))},!1),"complete"===e.readyState?e.body.style.fontSize=12*i+"px":e.addEventListener("DOMContentLoaded",function(){e.body.style.fontSize=12*i+"px"},!1),c(),k.dpr=a.dpr=i,k.refreshRem=c,k.rem2px=function(a){var b=parseFloat(a)*this.rem;return"string"==typeof a&&a.match(/rem$/)&&(b+="px"),b},k.px2rem=function(a){var b=parseFloat(a)/this.rem;return"string"==typeof a&&a.match(/px$/)&&(b+="rem"),b}}(window,window.lib||(window.lib={}));
    </script>
    <link rel="stylesheet" href="/ananas/css/main.css?v=qqqqq232">
</head>

<body>
     <div class="index-wrap">
        <!-- top msg -->
        <div class="top-msg-block js-ljt-wrap hide">
            <span class="dib crown-icon js-ljt-wrap hide"></span>
            <span class="dib tmb-title js-ljt-wrap hide">领奖台</span>
            <img class="user_head js-avatar" src="/ananas/img/page/eg/nobody.jpg" />
            <div class="message-line js-msg-line js-ljt-wrap hide">

            </div>
        </div>
        <!-- top msg end -->
        <!-- adv -->
        <div class="adv-block">
            <div class="swiper-container js-adv-list">
            </div>
        </div>
        <!-- adv end -->
        <div class="link-wrap">
            <ul>
                <li>
                    <a href="/user/usercenter">
                        <div class="nav nav1"></div>
                        <div class="note">会员中心</div>
                    </a>
                </li>
                <li class="js-go-input">
                    <div class="nav nav2"></div>
                    <div class="note">充值</div>
                </li>
                <li>
                    <a href="/user/orderlist">
                        <div class="nav nav3"></div>
                        <div class="note">我的订单</div>
                    </a>
                </li>
                <li onclick="window.location.href='/user/qrcode'">
                    <div class="nav nav4"></div>
                    <div class="note">二维码</div>
                </li>
            </ul>
        </div>
        <!-- nav -->
        <div class="nav-block hide">
            <ul class="js-nav-list">
                <li class="cur" data-id=""><a href="javascript:;">全部</a></li>

            </ul>
        </div>
        <!-- nav end -->
        <!-- good list -->
        <div class="good-list-block">
            <ul class="js-good-list">

            </ul>
        </div>
        <!-- good list end -->
    </div>


    <div class="input-window hide js-input-window">
        <div class="input-window-mask"></div>
        <div class="input-window-main">
            <img class="iwm-title" src="/ananas/img/page/window_title.png" />
            <input type="tel" class="iwm-input" id="rechargeMoney" placeholder="请输入充值金额(元)" />
            <div class="iwm-bt js-btn-recharge">确定</div>
        </div>
    </div>

    <div class="foot-nav">
        <div class="fn-unit js-fn-unit" ></div>
        <div class="fn-unit js-fn-unit" ></div>
        <div class="fn-unit js-fn-unit" ></div>
    </div>

    <!-- form start -->
    <form id="myForm" class="hide" action="" method="post">
        <input type="hidden" name="_token" value="{{ csrf_token() }}" />
        <input type="hidden" name="user" id="hiddenUser" />
        <input type="hidden" name="url" id="hiddenURL" />
        <input type="submit" value="Submit" />
    </form>
    <!-- form end -->
    <div class="tips-msg js-tips-msg hide">数据加载中..</div>
    <script>
        //ios
        function setupWebViewJavascriptBridge(callback) {
            if (window.WebViewJavascriptBridge) { return callback(WebViewJavascriptBridge); }
            if (window.WVJBCallbacks) { return window.WVJBCallbacks.push(callback); }
            window.WVJBCallbacks = [callback];
            var WVJBIframe = document.createElement('iframe');
            WVJBIframe.style.display = 'none';
            WVJBIframe.src = 'wvjbscheme://__BRIDGE_LOADED__';
            document.documentElement.appendChild(WVJBIframe);
            setTimeout(function() { document.documentElement.removeChild(WVJBIframe) }, 0)
        }
        function connectWebViewJavascriptBridge(callback) {
            //alert(window.WebViewJavascriptBridge);
            if (window.WebViewJavascriptBridge) {
                callback(WebViewJavascriptBridge)
            } else {
                document.addEventListener(
                    'WebViewJavascriptBridgeReady'
                    , function() {
                        //alert('WebViewJavascriptBridgeReady');
                        callback(WebViewJavascriptBridge)
                    },
                    false
                );
            }
        }
        var u = navigator.userAgent;
        window.isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端
        window.isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
        window.client = {};

        window.client.init = function( callback ){
            if(isAndroid){
                //alert('isAndroid');
                connectWebViewJavascriptBridge(function (bridge) {
                    bridge.init(function(message, responseCallback) {
                        console.log('JS got a message', message);
                        // alert(22)
                        var data = {
                            'Javascript Responds': '测试中文!'
                        };
                        console.log('JS responding with', data);
                        responseCallback(data);
                    });
                    // generateClient(bridge);
                    callback && callback(bridge);
                });
            }else if(isiOS){
                setupWebViewJavascriptBridge(function (bridge) {
                    // generateClient(bridge);
                    callback && callback(bridge);
                });
            }
        }


        window.client.init(function(bridge){
            //alert(bridge);
            window.appExec = bridge;
            // 获取 token
            bridge.callHandler('getUserToken', null , function(tokenIn) {
                window.client.token = tokenIn;
                //alert(window.client.token)
                //cb && cb();
            })
            // 退出
        })
    </script>

    <script src="/ananas/js/index.js?v=qaqa232"></script>
</body>

</html>